package com.xmut.service.impl;

import com.xmut.mapper.AppointmentMapper;
import com.xmut.pojo.Appointment;
import com.xmut.service.AppointmentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author zhangbaiyan
 * @date 2024-06-04 21:03
 * @description:
 * @version:
 */
@Service
public class AppointmentServiceImpl implements AppointmentService {
    @Autowired
    private AppointmentMapper appointmentMapper;
    @Override
    public void add(Appointment appointment) {
    appointmentMapper.insert(appointment);
    }

    @Override
    public List<Appointment> getAllHospital() {
        return appointmentMapper.getAllHospital();
    }

    @Override
    public void delHospitalById(Integer id) {
        appointmentMapper.delHospitalById(id);
    }
}
